const { userLoginApi } = require('../api/login');

async function userloginController(params) {
    let result;
    const data =  await userLoginApi(params)
    
    if(data && data.length > 0) {
        result = {
            success: true
        }
    }else {
        result = {
            success: false,
            msg: "账户名或密码错误"
        }
    }
    return result
}

module.exports = {
    userloginController:userloginController
}